package com.ruoyi.business.dto;


import com.ruoyi.business.domain.CarMain;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import org.hibernate.annotations.NotFound;
import org.hibernate.annotations.NotFoundAction;

import javax.persistence.*;
import java.math.BigDecimal;


@Data
public class CardetailDto extends BaseEntity {


    private Integer id;


    private String cinvcode;


    private String cinvname;


    private String cinvstd;

    private BigDecimal itaxrate;

    private BigDecimal orderNum;

    private BigDecimal num;

    private BigDecimal saleprice;

    private BigDecimal rate;

    private BigDecimal price;

    private String comunitname;

    private BigDecimal money;

    private BigDecimal tax;

    private BigDecimal amount;

    @ManyToOne(fetch = FetchType.EAGER)
    @JoinColumn(name = "mainid", foreignKey = @ForeignKey(value = ConstraintMode.NO_CONSTRAINT))
    @NotFound(action = NotFoundAction.IGNORE)
    private CarMain mainid;
}
